home *** CD-ROM | disk | FTP | other *** search
/ United Public Domain Gold 2 / United Public Domain Gold 2.iso / utilities / pu216.dms / pu216.adf / WBase / FR_User.DOC < prev    next >
Text File  |  1989-08-17  |  42KB  |  1,025 lines

  1.                           kd_freq.library  3.02
  2.  
  3.                      File Requester User Documentation
  4.                      ---------------------------------
  5.  
  6.                            By:  Khalid Aldoseri
  7.                            --------------------
  8.  
  9. A File Requester is used to select a file name from the existing files on a
  10. system, or to enter a new file name.  This file requester (FR) supports all
  11. normal features in a FR plus a lot of special features as desribed below.
  12.  
  13. ------------------------------------------------------------------------------
  14.                     BASIC FILE REQUESTER OPERATION
  15. ------------------------------------------------------------------------------
  16.  
  17. The File Requester has three essential parts for its operation:  The Path
  18. gadget, the File gadget and the File List:
  19.  
  20. The Path gadget contains the path to the currently displayed directory.  You
  21. can enter any directory name there directly if you like by clicking in it and
  22. editing the text there.  The FR also changes the Path name in many cases.
  23.  
  24. The File gagdet contains the currently selected file.  You can manually edit
  25. the filename by clicking in it and editing the text.
  26.  
  27. The File List is a list of file names that covers a major portion of the FR
  28. display.  This displays the contents of the directory in the Path gadget.
  29. This contains both directories and file names.  Every time you select a new
  30. directory the File List will start displaying the contents of that directory
  31. as it reads it from the device that directory exists on.  As this is
  32. happening, the FR will tell you how many files/dirs it has found so far in the
  33. status line at the bottom of the FR.  Once the FR has finished reading the
  34. directory, it will redisplay the File List starting with directories first
  35. and files second.
  36.  
  37. Notes:
  38.  
  39. - The FR stays 'live' while reading the directory, i.e. you can abort the
  40.   directory read at any time by selecting a new directory.  You can also
  41.   scroll through the file list or resize the window and the FR will keep on
  42.   reading the directory.
  43.  
  44. - The ':' (colons) in the 'Files: nnn  Dirs: nnn' display do not appear while
  45.   the directory is being read.  When they do show up, that means that the FR
  46.   is done reading in the directory.
  47.  
  48.  
  49. The File List Display:
  50. ----------------------
  51.  
  52. The File List display contains the following information:
  53.  
  54.     test.file  *         11381  09-Dec-89  11:50    ----rwed
  55.        |       |           |        |        |         |
  56.     filename   |          size     date     time   protection
  57.               filenote                                bits
  58.                marker
  59.  
  60. If the entry is a directory, it will be displayed in a different color and it
  61. will display '-dir-' instead of the file size.  Read the 'Window Resizing'
  62. section for more details on the File List display.
  63.  
  64. The job of the File List is to allow you to select an entry from the List.  To
  65. do that, just click on an entry.  That will have one of the following effects:
  66.  
  67. a. If the entry is a file:
  68.    The FR will copy that file's name into the File gadget and move the marker
  69.    to that entry.  If the file has a file note attached to it (i.e. it has a
  70.    filenote marker) then the file's filenote is displayed in its place as long
  71.    as you hold down the mouse button.
  72.  
  73.    If you double-click on the file entry, this will select that file and
  74.    immediately 'ok' the FR and exit it.
  75.  
  76. b. If the entry is a directory:
  77.    The FR will clear the File List and start displaying the contents of the
  78.    selected directory.
  79.  
  80.  
  81. The File List can be in normal or inverted colors.  This is intended to create
  82. a visual difference for two different functions, like normal for load, and
  83. inverted for save.
  84.  
  85.  
  86. File List Modes:
  87. ----------------
  88.  
  89. The File List can also contain other information.  Clicking the right mouse
  90. button while the pointer is on the File List area will cycle through one of
  91. three modes:
  92.  
  93.   a.  Normal mode :  File List shows the selected directory.
  94.  
  95.   b.  User List   :  Your own list of files/directories.  Read the User
  96.                      List section for details.
  97.  
  98.   c.  History List:  The last 100 files you selected.
  99.  
  100.   d.  Device list :  File List shows the currently mounted devices by
  101.                      their  volume names.
  102.  
  103.   e.  Assign list :  File List shows all assigns.
  104.  
  105. If you return to the Normal mode by clicking several times, then the directory
  106. displayed previously will show up immediately.  Note that if you had toggled
  107. the mode before the directory was completely read in by the FR, it will not be
  108. complete when you get back to it and the FR will re-read it.
  109.  
  110. Notes:
  111.  
  112. - The File List display is updated when the FR is done reading the directory.
  113.   However, if the user clicks on any file before that, the FR will not update
  114.   the display when it is done reading the directory.  The user has to click
  115.   on the prop gadget or move the list around and the FR will update the
  116.   display.
  117.  
  118. - If you insert a disk into a drive that has been selected in the Path
  119.   gadget the disk's directory will automatically be read and displayed.
  120.  
  121. - If the current disk is removed from the drive, the FR will clear the file
  122.   list and bring up the device name (not the old disk name) in the Path
  123.   gadget.  This means that you can take a disk out of the drive and insert
  124.   a new one and the FR will keep up with you if the current device is the
  125.   one that you are using.  This only works for devices DF0: to DF3:.
  126.  
  127.  
  128. The Path:
  129. ---------
  130.  
  131. The Path is the string contained in the Path gadget.  It shows the name of the
  132. currently selected directory.  This can be changed in many ways:
  133.  
  134. a. Direct entry:
  135.    You just click in the gadget to activate it and edit it normally.  Hit
  136.    return when you're done with editing it so that the FR will start reading
  137.    the directory you selected.  If you enter the name of an actual file into
  138.    the Path gadget, then the name will be split into its path and filename
  139.    components and handled accordingly.
  140.  
  141.    If the selected directory does not exist the FR will ask you whether you
  142.    want to create it.  Read 'Create Directory' below for details.
  143.  
  144. b. File List entry:
  145.    If you click on an entry in the File List that is a child directory of the
  146.    current Path, then that child directory is added to the Path name and that
  147.    directory is displayed.
  148.  
  149. c. Parent:
  150.    If you click on the Parent gadget (up-arrow to the right of the Path
  151.    gadget) then the parent of the current Path is displayed, if it exists.
  152.    This can be clicked several times to go up to the root directory of the
  153.    current device.  You can also use a short-cut to get the root of the device
  154.    by just clicking the _right_ mouse button on the Parent gadget.
  155.  
  156. d. Disk Icons:
  157.    These are disk icons that represent the currently mounted storage devices
  158.    in the system.  If you click on any disk icon with the left mouse button
  159.    the root directory of the selected device will be displayed.  You can
  160.    scroll through the mounted disk list via the 'Disk Scroll Up' and 'Disk
  161.    Scroll Down' arrow gadgets.  (up and down arrows at the top right of the
  162.    window).  These only work if the number of available devices is too big to
  163.    fit in the current window.
  164.  
  165.    If you click on the right mouse button over any disk icon, you will get
  166.    info about the device displayed in the file list area.  The file list is
  167.    not erased from memory, you just have to click on the prop gadget or the
  168.    up or down scroll gadgets and the file list will reappear.
  169.    Note:  If there isn't enough space to display 4 lines in the file list
  170.    area, this function will not work.
  171.  
  172. e. Reset Path Gadget: (the 'Path' text)
  173.    Clicking on the Path: text will restore the contents of both the Path and
  174.    File gadgets to what they were when the FR came up.
  175.  
  176.  
  177. Exiting the File Requester:
  178. ---------------------------
  179.  
  180. You can exit the file requester with either an 'OK', which tells the calling
  181. program that you like what you selected, i.e. the Path/File selected.  Or by
  182. a 'CANCEL' which just aborts the FR.
  183.  
  184. You can OK the FR by:
  185.  
  186.     a. Clicking on the OK gadget.
  187.     b. Double-clicking on a filename.
  188.     c. Typing a filename in the File gadget and hitting return.
  189.  
  190. You can cancel the FR by:
  191.  
  192.     a. Clicking on the Cancel gadget.
  193.     b. Hitting the 'Escape' key.
  194.     c. Closing the FR window by clicking on the close window gadget.
  195.  
  196.  
  197. The File Gadget:
  198. ----------------
  199.  
  200. This is the most important gadget in the FR.  The selected file name is the
  201. contents of this gadget.  You can change the contents of the File gadget by
  202. any of the following ways:
  203.  
  204. a. You just click in the gadget to activate it and edit it normally.  If you
  205.    hit return when you're done editing it, the FR will immediately exit with
  206.    an OK status.
  207.  
  208. b. Clicking on a file in the File List.
  209.  
  210. c. Moving the marker around in the File List.
  211.  
  212. A special feature of this string gadget over other string gadgets is that you
  213. don't really need to click in it to activate it.  This is summarized by the
  214. following points:
  215.  
  216.  - Hitting any alphanumeric key when no string gadget is active appends the
  217.    key to the File gadget and activates it.
  218.  
  219.  - Hitting the DELETE key when no string gadget is active clears the File
  220.    gadget and activates it.  Hitting the Right Amiga-x key clears the File
  221.    gadget without activating it.
  222.  
  223.  - Hitting the TAB key will just activate the File gadget.
  224.  
  225.  - Hitting the BACKSPACE key when no string gadget is active deletes the
  226.    last character in the File string gadget and activates it.
  227.  
  228.  - If the FR is reading the directory, it will not activate the File gadget
  229.    but you can still type into it and edit it using any alphanumeric
  230.    character or any of the above keys.
  231.  
  232.  
  233. Moving Around The File List:
  234. ----------------------------
  235.  
  236. You can move around the File List in many ways.  The major control is the
  237. Prop (proportional) gadget, which represents the position of the currently
  238. displayed files in the File List in relation to the total files in the
  239. selected directory.  You can move around the list by holding down the Prop
  240. gadget with the left mouse button and moving the gadget up and down.
  241.  
  242. You can also you click the right mouse button over the Prop gadget it will
  243. move to the top of the File List, unless it is already at the top in which
  244. case it will move to the bottom of the list.
  245.  
  246. Another way is to use the Scroll gadgets.  These are two gadgets above and
  247. below the Prop gadget.  The Scroll Up gadget (above the Prop gadget) scrolls
  248. the file list up at a slow speed if you click it  with the left mouse button,
  249. or it will scroll the file list down if you click it with the right mouse
  250. button.  If you hold down both buttons at the same time, the right button will
  251. take priority.  The Scroll Down gadget (below the Prop gadget) does the same
  252. as the Scroll Up gadget expect that it moves the list a lot faster and the
  253. mouse button directions are reversed.  Try it, it'll make sense.
  254.  
  255.  
  256. The Marker:
  257. -----------
  258.  
  259. The marker is a small arrow that points to an entry in the File List.  This is
  260. used to control the FR via the keyboard.  The marker is normally not visible
  261. unless you control it in one of the following ways:
  262.  
  263. a. Clicking on any entry in the File List will move the marker to that entry.
  264.  
  265. b. The cursor up/down keys move the marker up/down one entry at a time.
  266.  
  267. c. The shift cursor up/down keys move the marker up/down one page at a time.
  268.    (a 'page' is the number of files that can be shown in the File List area)
  269.  
  270. d. The alt cursor up/down keys move the marker all the way to the top or the
  271.    bottom of the File List.
  272.  
  273. As the marker moves outside the currently visible File List entries, the File
  274. List will be paged up or down to show more entries.
  275.  
  276.  
  277. Moving the marker to an entry will have the following effects:
  278.  
  279. a. If the entry is a file, the name of that file will be copied into the File
  280.    gadget.
  281.  
  282. b. If the entry is a directory name, then the File gadget will be cleared.
  283.    To display that marked directory, hit the cursor right key to enter it.
  284.  
  285.  
  286. Window Resizing:
  287. ----------------
  288.  
  289. The amount of data displayed in the File List depends on the size of the FR's
  290. window.  The FR is resizable by the user.  The resize gadget is invisible, but
  291. it actually occupies the bottom 5 lines across the window.  Just click there
  292. and resize the window.  The whole requester will resize accordingly.
  293.  
  294. Resizing the window horizontally will make space for more information in the
  295. File List to be displayed.  This is based on the following method:  The FR
  296. checks to see the longest file name in the list and it fits in whatever extra
  297. data it can starting with the file date, file time and finally protection bits.
  298.  
  299. There are also three small gadgets at the bottom right corner of the FR that
  300. immediately resize the FR to small, normal, and full screen respectively from
  301. left to right.  This action will also automatically centers the FR in the
  302. screen.  If the FR is already at the requested size, then this request will be
  303. ignored.
  304.  
  305. The FR will always try to come back up where it was previously, and in the
  306. same size.  If it can't do that, it will move/resize to attempt to be as close
  307. as possible to what it was.
  308.  
  309. ------------------------------------------------------------------------------
  310.                              THE RETURN KEY
  311. ------------------------------------------------------------------------------
  312.  
  313. The Return key has so many functions that it is worth devoting a section to
  314. it.  Normally hitting the Return key while a string gadget is active will
  315. 'accept' that gadget and deactive it.  The following is a description of the
  316. effect of the Return key on each string gadget:
  317.  
  318.  
  319. General Return Key Functions:
  320. -----------------------------
  321.  
  322. a. Hitting Shift-Return will activate the File gadget or Path gadget
  323.    alternatively.  The cursor is positioned at the end of the current text in
  324.    the gadget.
  325.  
  326. b. Hitting RightAmiga-Return on any string gadget will just ignore the hit and
  327.    deactivate that gadget.  i.e. if a string gadget was active and you wanted
  328.    to use the keyboard controls, you just hit RightAmiga-Return.
  329.  
  330.  
  331. The Path gadget:
  332. ----------------
  333.  
  334. a. Hitting return when the Path gadget is active tells the FR to start reading
  335.    in a new directory.  (Note that if the directory is the same as the one
  336.    currently displayed and it has not changed since the last time it was read
  337.    the FR will not re-read the directory)
  338.  
  339. b. Hitting Shift-Return when the Path gadget is active will just deactivate
  340.    the Path gadget and activate the File gadget.
  341.  
  342. c. Hitting RightAmiga-Return when the Path gadget is active will only
  343.    deactivate the Path gadget.
  344.   
  345.  
  346. The File Gadget:  (also applies if no string gadget is active)
  347. ----------------
  348.  
  349. a. Hitting Return will OK the requester.
  350.  
  351. b. Hitting Alt-Return will call up Auto-Complete.
  352.  
  353.    Auto-Complete:
  354.    --------------
  355.    If you type the first few characters of a file name into the File gadget
  356.    and hit Alt-Return, the first matching filename from the file list will be
  357.    used to complete the filename in the File gadget.
  358.  
  359. c. Hitting Control-Return in the Extended Select mode will call up Wildcard
  360.    Extended Select.   (Read 'Extended Select' section for details)
  361.  
  362. d. Hitting LeftAmiga-Return will call up the String Search feature.
  363.  
  364.    String Search:
  365.    --------------
  366.    If you type a string in the File gadget then hit LeftAmiga-Return, the FR
  367.    will search through the files currently in the File list for the string
  368.    you specified.  The actual sequence is as follows:
  369.  
  370.    a. all marked files will be unmarked.
  371.    b. the marker will point to each file as it is being searched through.
  372.    c. if the requested string is found in the current file, it will be marked
  373.       and the status line at the bottom will update the marked files count.
  374.    d. this will continue until the last file is searched thru.
  375.  
  376.    Notes:
  377.  
  378.    - The string search is case-insensitive.
  379.  
  380.    - You can abort the search by hitting the right mouse button or the space
  381.      bar.  This will stop the search at whatever stage it got to.
  382.  
  383.    - The search only works correctly with text files so far... binary files
  384.      don't really work.. this will be fixed.
  385.  
  386.    - At the moment, it allocates memory for each file in one chunk, so it may
  387.      fail if the file it too large.  It will only ignore that file and
  388.      continue with the rest of the files.
  389.  
  390.    - This feature works in all modes except when the File List is displaying
  391.      the device or assign list or the Select List.
  392.  
  393.  
  394. e. Hitting Shift-Alt-Return will call up the File Finder feature.  (see the
  395.    'File Finder' section for details.)
  396.  
  397. ------------------------------------------------------------------------------
  398.                             WILDCARD PATTERNS
  399. ------------------------------------------------------------------------------
  400.  
  401. Wildcard Patterns:
  402. ------------------
  403.  
  404. There are two string gadgets that allow you to specify what files to show in
  405. the File List.  These are the 'Show Wildcard' gadget and the 'Hide Wildcard'
  406. gadget.  Both gadgets expect a wildcard pattern (as described below in
  407. 'Supported Wildcard Patterns').
  408.  
  409. As the FR reads a directory's contents, it will apply both wildcards to
  410. control what files it will display.  The Show pattern tells the FR to 'show
  411. only files that match this pattern' and the Hide pattern tells it to 'don't
  412. show files that match this pattern'.  This allows you to specifically select
  413. what files you want to see.
  414.  
  415. Both wildcards default to 'show all files' unless the calling program sets
  416. them to something else.
  417.  
  418.  
  419. Supported Wildcard Patterns:
  420. ----------------------------
  421.  
  422. The supported wildcards in pattern are:
  423.  
  424. 1. Standard AmigaDOS Wildcards:
  425.  
  426.    ?   Matches any single character
  427.    #p  Match any number of occurences of the pattern p
  428.    %   Matches the null string
  429.    ()  Make a group of characters into a single pattern
  430.    |   The OR operator
  431.    '   Disable wildcard interpretation of next character
  432.        (unless it is an extended wildcard as shown below.)
  433.  
  434. 2. Extended Wildcards:
  435.  
  436.    These are wildcards not supported by the standard AmigaDOS
  437.    convention, but expand it to make it more versatile.
  438.  
  439.    'd  Matches any single digit.  (0 to 9)
  440.    'a  Matches any single alpha character. (a to z)
  441.    'n  Matches any single alphanumeric character.
  442.  
  443.  
  444.    For examples of standard wildcard usage look up any AmigaDOS tutorial book.
  445.  
  446.    Examples of extended wildcards:
  447.  
  448.    Pattern     Matching possibilities
  449.    -------     ----------------------
  450.    test'n      test0, test1, test9, testa, testA, testz, testZ
  451.    test'd      test0, test1, test9
  452.    test'a      testa, testA, testz, testZ
  453.    test 'd     test 1, test 2, test 9
  454.    test#'d     test1, test100, test10234
  455.    #'a#'d      a1, ab12, abc1, abc123, adks34234
  456.                (matches any string with some or no alpha characters,
  457.                then some or no digits.)
  458.    #'a'd#'d.c  a1.c, a203.c, 100.c, 1.c, adsdfs931234.c
  459.                (matches any string that starts with some or no alpha
  460.                characters, then at least 1 or more digits, and ends with .c)
  461.  
  462.    Note:  You can use the '*' instead of '#?'.  It will be automatically
  463.           expanded into '#?'.
  464.  
  465.  
  466. Size Wildcards:
  467. ---------------
  468.  
  469. If the first character of the Show wildcard is an equals, greater than, or
  470. less than sign, then that is used to control which files are shown by their
  471. size.  i.e..
  472.  
  473. Show:  "=232"   Shows only files that are 232 bytes in size.
  474. Show:  ">232"   Shows only files that are larger than 232 bytes.
  475. Show:  "<232"   Shows only files that are smaller than 232 bytes.
  476.  
  477. The same applies to the Hide wildcard, only in the opposite manner:
  478.  
  479. Hide:  "=232"   Hide any files that are 232 bytes in size.
  480. Hide:  ">232"   Hide any files that are larger than 232 bytes.
  481. Hide:  "<232"   Hide any files that are smaller than 232 bytes.
  482.  
  483. You can use both the Show and Hide wildcard size features to specify a range
  484. of sizes to show.
  485.  
  486.  
  487. Reset Wildcards Gadget:
  488. -----------------------
  489.  
  490. If you click on the Reset Wildcards gadgets (click on the 'Show' text) both
  491. wildcards will reset to "#?" and "".
  492.  
  493. ------------------------------------------------------------------------------
  494.                          THE USER & HISTORY LISTS
  495. ------------------------------------------------------------------------------
  496.  
  497. User List:
  498. ----------
  499.  
  500. The User List is simply a list of directories and files that the user
  501. defines and can access quickly.  To get to the list, just click the right
  502. mouse button once to get the User List, or hit the F2 key.  You can then
  503. pick any entry in that list to go to that directory, or select that file.
  504.  
  505. The User List is read from a file called "s:kd_freq.user.list", which you
  506. create.  It is simply a list of directories or files, each on its own line.
  507. Each entry must be terminated with a return.  A directory must end with
  508. a : or a / so that it is recognized as one.  A file is any entry which
  509. doesn't end with a : or a /.  The library will read the user.list file
  510. when it FIRST starts up, so any changes to this file won't show up until
  511. the next time the library starts itself.  (normally at boot-up time).
  512.  
  513. You can also quickly add the current file/directory to the User List,
  514. just hit F8 and it will be added to the user list, however, this will
  515. only remain for the duration of the current session.. once the library
  516. is flushed, these will be lost.  As long as the library is not flushed,
  517. all programs using the library access the same list, so if you add an
  518. entry from the FR in one program, it'll show up in the other, i.e. the
  519. User List is global.
  520.  
  521. Note: If the user list is empty, it will NOT show up, and the FR will skip
  522.       it and go to the next list instead.
  523.  
  524.       The User List ignores duplicate entries.
  525.  
  526.  
  527. History List:
  528. -------------
  529.  
  530. The history list is the last 100 files you OK'd in any invocation of
  531. the FR during the current session.  (i.e. since the library was loaded).
  532. It acts like the User List, except that entries are added to it
  533. automatically as you use the FR.  If you cancel the FR, the entry will
  534. not be stored.   To access the History list click on the right mouse
  535. button twice, or hit the F2 key twice.
  536.  
  537. Note: If the history list is empty, the FR will skip it and show the
  538.       storage devices list instead.
  539.  
  540.       The History List is NOT sorted, it shows up in reverse order of
  541.       selection, i.e. last file selected shows up at the top of the list.
  542.  
  543.       The History List deletes duplicate entries.  When the list is
  544.       filled up, the new entry pushes out the oldest entry.
  545.  
  546.  
  547. ------------------------------------------------------------------------------
  548.                               FILE FINDER
  549. ------------------------------------------------------------------------------
  550.  
  551. File Finder searches through all your devices for a file or directory that
  552. matches a wildcard pattern.  It is based on a program called 'Find' by
  553. Larry Phillips and uses Find's data file.  As such, you have to have Find
  554. before you can use this facility.  The Find package is included in its own
  555. arc file.  You should follow Find's documentation and try it out before
  556. trying to use the FR's File Finder.
  557.  
  558. To invoke the File Finder, type a valid wildcard pattern (or just a filename)
  559. into the File string gadget and then hit shift-alt-return.  The file list
  560. will go blank and you will see a counter showing how many files/directories
  561. have been found so far.  
  562.  
  563. Once the search is complete, you will see a list of files/directories in
  564. the file list.  The complete path to each is displayed in the file list.
  565. To select a file, just move the marker to it and hit return, or click on
  566. it.  If you need to see the directory itself, either click on the entry or
  567. move the marker to it and hit the cursor left button.
  568.  
  569. To abort the search, hit the right mouse button or the space bar.  This will
  570. stop the search at whatever stage it got to.
  571.  
  572.  
  573. Notes:
  574.  
  575. - File Finder is only effective when you have a hard disk.
  576.  
  577. - This mode requires that a file called "FindDB:find.codes" exists.  If
  578.   it doesn't, then it won't operate.  This file is generated by a program
  579.   called "UpdateDB" which is part of the Find package.
  580.  
  581. - Using a wildcard like "test#?" is fairly fast, while "#?test" is slower
  582.   because of the nature of the pattern matching logic.
  583.  
  584. - There is a maximum limit of 200 matches.  You will be informed if the
  585.   search is aborted because of too many matches.  You can then use a more
  586.   precise pattern.  E.g. if you use "inf#?" and you get too many matches,
  587.   you might then use "inform#?".
  588.  
  589. - The Extended Select mode does not operate in the Find List mode.
  590.  
  591. - CED Pro uses the right alt/right shift/return combination to invoke the
  592.   editor.  If you have CED Pro running, you should use the left alt/left
  593.   shift/return combination instead.  (both work when CED Pro is not running)
  594.  
  595. - Many many thanks to Larry for allowing me to use Find.  and:
  596.   FIND, Copyright © 1989, by Larry Phillips.
  597.  
  598.   You will need the Find package.  It is included in this package as Find.LZH
  599.   (it contains 3 files, Find, Find.DOC and UpdateDB)
  600.  
  601. ------------------------------------------------------------------------------
  602.                               HELP FACILITY
  603. ------------------------------------------------------------------------------
  604.  
  605. The FR supports two methods of online help.  The first is pointer-relative.
  606. All you need to do is move the pointer on top of something in the FR's window
  607. and hit the F1 key.  As long as you hold down the F1 key you will see a help
  608. message telling you what the right mouse button and the left mouse button do
  609. in this position.  e.g. 'L: do this'  'R: do that'  in this case the left
  610. button will 'do this' and the right button will 'do that.'  If only one entry
  611. is shown, then it relates to the left button.
  612.  
  613. The second method just displays a screen that summarizes all the available
  614. keyboard commands.  To call this up, hit the Shift-F1 key and you will get
  615. that screen.  You can then hit any key to get back to the FR.  You can also
  616. access this via the Help gadget.  Just click on the Help gadget and the Help
  617. screen will show up.  Click on that screen again and the FR will return.
  618.  
  619. If you hit the HELP key, you will get a message telling you to use either F1
  620. or Shift-F1.
  621.  
  622. ------------------------------------------------------------------------------
  623.                              EXTENDED SELECT
  624. ------------------------------------------------------------------------------
  625.  
  626. In some cases, it is necessary (or desirable) to select more than one file
  627. from a single directory.  If the Select List mode (see below) is enabled or
  628. the Extended Select mode is enabled, then the user can mark multiple files
  629. from a single directory for further operation.
  630.  
  631. When this mode is active, there are several ways to mark a file:  (In all
  632. cases, the file itself is shown in inverted video on the screen to show that
  633. it is marked)
  634.  
  635. 1. Clicking on a file (from the file list) while holding down one of the
  636.    shift keys on the keyboard.  (Shift-click)
  637.  
  638. 2. Keyboard methods:
  639.  
  640.    a.  Wildcard Extended Select: 
  641.        -------------------------
  642.        You can mark multiple files by entering a valid wildcard pattern in
  643.        the File string gadget and hitting Control-Return.  This will mark
  644.        all the files in the File List that match the pattern.
  645.        For Example:  #?.c will highlight all files that end with .c
  646.  
  647.    b.  The Cursor Right Key:
  648.        ---------------------
  649.        If the current entry is a file, then hitting the Cursor Right key will
  650.        toggle the file between marked and not-marked.
  651.  
  652.    c.  Alt-Cursor Right and Shift-Cursor Right:
  653.        --------------------------------------
  654.        Alt-Cursor Right clears all marked files.
  655.        Shift-Cursor Right marks all files.
  656.  
  657.  
  658. If there is one or more selected files, the number of files selected will be
  659. shown at the bottom of the file list.
  660.  
  661.  
  662. Note:
  663.  
  664.     The marked files list is not the same as the currently selected file
  665.     (the one in the File gadget.)   The calling program can (if it so wishes)
  666.     differenciate between the two types of files.
  667.  
  668.  
  669. ------------------------------------------------------------------------------
  670.                             THE SELECT LIST
  671. ------------------------------------------------------------------------------
  672.  
  673. The FR can allow the user to select multiple files instead of just one file.
  674. This is accomplished by a 'Select List'.  It is up to the calling program to
  675. decide whether the user is allowed to select multiple files or not.  If the
  676. Select List mode is enabled, two gadgets will show up at the top right corner
  677. of the FR window, labelled 'Select' and 'Show SL'.
  678.  
  679. The Select List is a list of files that the user selects.  Each file can be
  680. from a different directory, which is why the Select List display shows the
  681. full path to each file.
  682.  
  683. You can add a file to the Select List by moving the marker to that file and
  684. then clicking on the 'Select' gadget.  To view the Select List, click on the
  685. 'Show SL' gadget.  The Select List Display show the files in the Select List
  686. in the File List display.
  687.  
  688.  
  689. The Select Gadget:
  690. ------------------
  691.  
  692. Adds files marked for selection using the shift-click or the cursor-right key
  693. using Extended Select.  These are added to a seperate list called the 'Select
  694. List'. Files that already exist in the Select List are ignored.  All marked
  695. files in the current directory are then unmarked.
  696.  
  697. If no files are currently marked, then the current file in the File gadget is
  698. added to the Select List.  If the File gadget is empty, then nothing happens.
  699.  
  700.  
  701. The Show SL Gadget:
  702. -------------------
  703.  
  704. 'Show Select List'.  Clicking on this gadget will bring up the Select List in
  705. the File List display.  You can move around this display but you cannot select
  706. any files.  Hitting this gadget again will return you to the previous display.
  707. Selecting a disk icon or any other method of changing the directory will do
  708. the same thing as well.  Entries in the Select List are shown as
  709. path/filename.. i.e. the full path to the file.
  710.  
  711.  
  712. The Path/Name Gadget:
  713. ---------------------
  714.  
  715. When the FR is in the Select List display mode, the Select gadget will change
  716. and show either 'Path' or 'Name'.  You can toggle between those by clicking on
  717. the gadget.  This allows you to change the display of the Select List from the
  718. full path to a file to only the filename itself and back.
  719.  
  720.  
  721. Removing Entries from the Select List:
  722. --------------------------------------
  723.  
  724. Clicking on any entry in the Select List will remove that entry from the list.
  725.  
  726.  
  727.  
  728.  
  729. ------------------------------------------------------------------------------
  730.                         OTHER KEYBOARD COMMANDS
  731. ------------------------------------------------------------------------------
  732.  
  733. The Cursor Left Key:
  734. --------------------
  735.  
  736. Changes the display to the parent of the current directory.
  737.  
  738. Note:
  739.  
  740. The Parent function (whether called from the keyboard or the mouse) 
  741. brings up the 'Storage Device List' if the Path was already at the root
  742. of a device.  Using the Parent function again after that will bring up
  743. the 'Logical Device List'.
  744.  
  745.  
  746. Control-Cursor Keys:
  747. --------------------
  748.  
  749. - Control-Cursor (left, right, up or down):
  750.   Resizes the window in the direction selected by 24 pixels.
  751.  
  752. - Control-Alt-Cursor (left, right, up or down):
  753.   Resizes the window in the direction selected all the way to the limit of
  754.   the screen or the minimum window height/width size possible.
  755.  
  756. - Control-Shift-Cursor (left, right, up or down):
  757.   Moves the window in the direction selected by 24 pixels.
  758.  
  759.  
  760. Function Keys:
  761. --------------
  762.  
  763.    Normal:
  764.  
  765.    F1   Help about gadget/item under pointer
  766.    F2   Toggle 'File List/Device List/Assign List'
  767.    F3   Go to next device from disk list
  768.    F4   Go to Root Directory
  769.    F5   Go to Parent Directory
  770.    F6   Restore startup directory and file name
  771.    F7   Next Buffer
  772.    F8   Toggle 'Show Info Files' on/off
  773.    F9   Display info about current device
  774.    F10  Create Directory
  775.  
  776.    Shifted:
  777.  
  778.    F1   Display Keyboard Help Screen
  779.    F2   Delete File
  780.    F3   (unused)
  781.    F4   Print Current Directory
  782.    F5   Reset wildcard pattern to "#?"
  783.    F6   Tiny size
  784.    F7   Medium size
  785.    F8   Full screen size
  786.    F9   Scroll Device List Up
  787.    F10  Scroll Device List Down
  788.  
  789.  
  790. Examples Of Keyboard Usage:
  791. ---------------------------
  792.  
  793.    - Selecting a specific file from the current directory:
  794.  
  795.      a. Using the Cursor up/down keys, move the marker until you find the
  796.         file, and hit return.
  797.      
  798.      b. Type the first few letters of the file name, then hit alt-return.
  799.         If the file that shows up is the one you want, then hit return.
  800.         Otherwise, use the cursor up/down keys to track it down.
  801.  
  802.  
  803.    - To display a subdirectory:
  804.  
  805.      -  Using the Cursor up/down keys, move the marker until you find the
  806.         directory, and hit the cursor left key.
  807.  
  808.  
  809.    - To display a directory's parent:
  810.  
  811.      -  Hit the cursor right key.
  812.  
  813.  
  814.    - To display a different device:
  815.    
  816.      a. Hit F2 to display the Device List, then use the cursor keys to select
  817.         the device.  Hit the left cursor key to select that device.
  818.  
  819.      b. Hit the right cursor key multiple times until you get the Device List.
  820.         (then same as above.)
  821.  
  822.      c. Hit F3 until the device you want shows up in the Path gadget.
  823.  
  824.  
  825. ------------------------------------------------------------------------------
  826.                              OTHER FEATURES
  827. ------------------------------------------------------------------------------
  828.  
  829. Create Directory:
  830. -----------------
  831.  
  832. To create a directory, enter its name into the Path gadget and hit return.
  833. If that directory doesn't already exist, the FR will inform you of that and
  834. also asks you to "Hit F10 to create it."  If it can't create the directory,
  835. it will complain.  Hitting F10 on an existing directory has no effect.
  836.  
  837. Note: The new directory requested must have a valid parent.  If it doesn't,
  838.       the FR will tell you that it can't create the directory.
  839.  
  840.  
  841. Print Directory:
  842. ----------------
  843.  
  844. To get a hard copy of the currently displayed directory onto the printer,
  845. click on the 'Prt' gadget or hit the Shift-F4 key.  The printout will be
  846. sent to the currently selected printer in Preferences.  If the printer is
  847. busy, the FR will complain and abort the print.  (output is sent to PRT:)
  848.  
  849. This function recognizes if the printer is not available and complains
  850. instead of just waiting around for it.  It recognizes the following
  851. cases:  printer offline, printer off, paper out, printer not selected.
  852.  
  853. If the current directory is empty, the print will abort.
  854.  
  855.  
  856. Delete File:
  857. ------------
  858.  
  859. You can delete the currently selected file in the File gadget by hitting
  860. Shift-F2.  The FR will bring up a requester asking you if you're sure you want
  861. to delete the file.
  862.  
  863.  
  864. Directory Buffers:
  865. ------------------
  866.  
  867. The File Requester has multiple directory buffers.  A directory buffer is a
  868. temporary storage area for the contents of a directory.  Normally, the FR
  869. will come up displaying directory buffer # 1.  You can use up to 5 buffers to
  870. store directory contents.  The Next Directory gadget allows you to move to
  871. another buffer.  If no other buffer exists, it will provide you with a new
  872. buffer.  As you use the Next gadget, the buffer number will be shown at the
  873. bottom of the FR.  This is a circular gagdet that moves between buffer 1 to
  874. 5 and then back to buffer 1.
  875.  
  876. As you move between buffers, the directory in the buffer to be displayed is
  877. shown immediately and does not have to be read back again from the drive,
  878. unless the directory has been changed since it was last read, in which case,
  879. the FR will re-read the directory.
  880.  
  881. The directory buffers store the following information:
  882.  
  883.  - The full path name of the directory.
  884.  - All the files in the directory along with their sizes, date, time and
  885.    protection settings, and marked files.
  886.  - The number of files and directories in the directory.
  887.  - The position where the scroll bar was in.  (This means that when you return
  888.    to a directory, the file list will be exactly where you left it.)
  889.  - The current filename in the File gadget.
  890.  
  891.  
  892. For your information, each buffer used allocates memory in 2k chunks as it
  893. needs them.  Average memory usage is 70 files for a 2k buffer.  The only limit
  894. to the number of files per directory buffer is available memory.  If the FR
  895. runs out of memory, it will inform you that the directory was truncated.
  896.  
  897.  
  898. Buffered directories between FR calls:
  899. --------------------------------------
  900.  
  901. A special feature of the FR is that it can store all 5 directory buffers
  902. between calls to it if the calling program requests it to do so.
  903.  
  904. In this mode, the FR will not clear its buffers upon exit and will come up
  905. the next time with all the directories intact.  This means that the FR does
  906. not need to re-read the directories, unless these directories have changed
  907. since the last time they were read.  This will only be done for the first
  908. buffer that shows up, and will be done later for each other buffer as the
  909. Next gadget is used to move between buffers.
  910.  
  911.  
  912. Sort Mode:
  913. ----------
  914.  
  915. The File Requester sorts the files in the File List display as it reads them
  916. from the directory.  The files are sorted either alphabetically, or by their
  917. size or their date.
  918.  
  919. The 'Sort Mode' gadget allow you to toggle between these modes.  The gagdet's
  920. text changes between the following states:
  921.  
  922. "FILE"  The File list is sorted by the file name. (default mode)
  923.  
  924. "SIZE"  The File list is sorted by the file size.
  925.         (files with matching size are sorted by name)
  926.         (files are shown largest first)
  927.  
  928. "DATE"  The File list is sorted by the file date and time.
  929.         (files with matching date & time are sorted by name)
  930.         (files are shown newest first)
  931.  
  932.  
  933. The No .Info Gadget:
  934. --------------------
  935.  
  936. The No .Info Gadget is a small box with 'I' in it, below the 'Next' gadget.
  937. If the No .Info Gadget is active, it will be a blank box, or will have an 'I'
  938. in it is it isn't active.  This tells the FR not to display files ending with
  939. '.info' in the file list.  This gadget is actually a toggle switch.  In most
  940. cases the default setting for this gadget is ON.
  941.  
  942. Note: 
  943.  
  944. When moving from off to on, the FR will remove all entries in the File List
  945. ending with .info.  When moving from on to off, it will re-read the directory.
  946.  
  947.  
  948.  
  949. File Requester Look:
  950. --------------------
  951.  
  952. The FR borders have two different looks.  One is the standard look that is
  953. designed for a normal screen.  The second look is designed to match the look
  954. that Workbench 2.0 uses and is almost identical to it.  The FR automatically
  955. detects if it is running under 2.0 and will switch to that look.
  956.  
  957.  
  958. Error Messages:
  959. ---------------
  960.  
  961. If the FR cannot access a device, it will report one of the following errors:
  962.  
  963.   - No disk in drive.     (drive empty)
  964.   - Not a DOS Disk.       (bad or kickstart disk)
  965.   - Can't find Path.      (bad device or directory name)
  966.   - Output Device.        (device selected is not a disk.)
  967.   - DOS Error: xxx.       (where xxx is the DOS error number.)
  968.  
  969.  
  970. ------------------------------------------------------------------------------
  971.  
  972.                    SUMMARY OF FILE REQUESTER GADGETS
  973. ------------------------------------------------------------------------------
  974. Gadget Name            | Gadget Position
  975. -----------------------|------------------------------------------------------
  976. Path Gadget            | String gadget at top of window
  977. File Gadget            | string gadget below File List
  978. File List              | set of gadgets that display the file list
  979. OK Gadget              | bottom left of window
  980. Cancel Gadget          | bottom right of window
  981. Close Window Gadget    | standard close window gadget
  982. Show Wildcard Gadget   | string gadget below Path gadget
  983. Hide Wildcard Gadget   | string gadget to the right of Show gadget
  984. Scroll Up Gadget       | up-arrow above the proportional gadget
  985. Scroll Down Gadget     | down-arrow below the proportional gadget
  986. Prop Gadget            | proportional gadget across the center of the window
  987. Parent Gadget          | up-arrow to the right of the Path string gadget
  988. Disk Icons             | set of disk icons across the right side of the FR
  989. Disk Scroll Up Gadget  | top right, up-arrow
  990. Disk Scroll Down Gadget| top right, down-arrow
  991. Resize Gadget          | bottom 5 lines across window
  992. Next Directory Gadget  | bottom right, marked 'Next'
  993. Reset Path Gadget      | the 'Path' text
  994. Reset Wildcard Gadget  | the 'Show' text
  995. Print Gadget           | bottom right,  marked 'Prt'
  996. Help Gadget            | bottom right, marked 'Help'
  997. Sort Mode Gadget       | bottom right, marked 'File' 'Date' or 'Size'
  998. Preset Resize Gadgets  | 3 small box gadgets, below Sort Mode and Next gadgets
  999. No .Info Gadget        | small box gadget below Next gadget
  1000. ------------------------------------------------------------------------------
  1001.  
  1002. ------------------------------------------------------------------------------
  1003.  
  1004. Quick installation instructions:
  1005.  
  1006. 1. Copy the kd_freq.library file into your LIBS: directory.
  1007. 2. Copy the FR_Bypass file into your C: directory.
  1008. 3. Put the following line into your startup-sequence:
  1009.        FR_Bypass
  1010.  
  1011. ------------------------------------------------------------------------------
  1012.  
  1013. -   Please send any comments, suggestions, bug reports, etc. to me either on
  1014.     Compuserve (75166,2531) or to:
  1015.  
  1016.                       /-------------------\
  1017.                       | Khalid Aldoseri   |
  1018.                       | P.O. Box 3300     |
  1019.                       | Manama, Bahrain.  |
  1020.                       | Fax: (973) 694777 |
  1021.                       \-------------------/
  1022.  
  1023.                Copyright 1990,1991  Khalid Aldoseri.
  1024.                          26 November 1991.
  1025.